import type { Meta, StoryObj } from "@storybook/react";
import React from "react";
import KxInvestmentCategoryAmountPieChart from "./index";

const meta = {
  title: "饼图/可信投资额种类比例饼图-KxInvestmentCategoryAmountPieChart",
  component: KxInvestmentCategoryAmountPieChart,
  tags: ["autodocs"],
  argTypes: {},
  decorators: [
    (Story) => (
      <div
        style={{ backgroundColor: "#031857", height: "169px", width: "672px" }}
      >
        <Story />
      </div>
    ),
  ],
} satisfies Meta<typeof KxInvestmentCategoryAmountPieChart>;

export default meta;
type Story = StoryObj<typeof meta>;

export const basic: Story = {
  args: {
    dataSource: [
      { amount: 23200, name: "本月完成投资（建安）" },
      { amount: 986, name: "本月完成投资（设备）" },
      { amount: 6800, name: "本月完成（其他）" },
    ],
  },
};
